package it.elis.media.library.service.impl;

import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import it.elis.media.library.dao.BookDao;
import it.elis.media.library.model.data.Book;
import it.elis.media.library.service.BookService;

@Transactional(rollbackFor={Exception.class})
public class BookServcieImpl implements BookService {

	Logger logger = Logger.getLogger(this.getClass());
	
	@Autowired
	BookDao bookDao;
	//Bombeeeeeer!

	@Override
	public List<Book> search(Book bookCriteria) throws Exception {
		return bookDao.search(bookCriteria);
	}
}
